package com.xiaoma.eventpublish;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;


@Component
public class BusinessListener implements ApplicationListener<BusinessEvent> {
    @Override
    public void onApplicationEvent(BusinessEvent event) {
        System.out.println("监听到事件：" + event.getType());
    }
}
